//
//  WSOrderPayViewController.m
//  FD
//
//  Created by Yasin on 2018/10/23.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//  待付款

#import "WSOrderPayViewController.h"
#import "WSOrderCell.h"

//controller
#import "WSOrderDetailWaitPayController.h"


@interface WSOrderPayViewController ()

@end

@implementation WSOrderPayViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    //待付款
//    [self loadOrderDataWithStatus:@[@0]];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.tableView.mj_header beginRefreshing];
}

- (void)loadOrderDataWithStatus:(NSArray<NSNumber *> *)status {
    [super loadOrderDataWithStatus:@[@0]];
}

//点击cell
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    
    WSOrderModel *model =   self.dataArr[indexPath.section];
    
    WSOrderDetailWaitPayController *waitPayVC = [[WSOrderDetailWaitPayController alloc] init];
    waitPayVC.orderId = model.orderId;
    [self.navigationController pushViewController:waitPayVC animated:YES];
}

@end
